import Router from 'koa-router';

import addFSRoutes from './fs.js';
import addQuickActionsRoutes from './quick-actions.js';

// Handle '/'
const router = new Router();

router.get('/', async function root(ctx) {
    // Redirect to editor page
    return ctx.redirect('/editor');
});

// Sub routing
addFSRoutes(router);
addQuickActionsRoutes(router);

export default router;